package com.bitters.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 
 * 自定义配置文件
 * @author monk
 *
 */
@PropertySource("monk.properties")
@ConfigurationProperties(prefix="monk.department")
@Component
public class Department {

	
	private String name,code;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
